package com.simtop;

import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.date.LocalDateTimeUtil;
import org.junit.jupiter.params.shadow.com.univocity.parsers.common.input.DefaultCharAppender;

import java.time.Duration;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @ClassName: test01
 * @Description TODO
 * @Author liuzhaobo
 * @Date 2022/11/4 0004 14:15
 * @Version 1.0
 **/
public class test01 {
    public static void main(String[] args) {


/*        for (int i = 0; i < 200; i++) {
            System.out.println((int)((Math.random()*9+1)*100000));

        }*/
        LocalDateTime of = LocalDateTimeUtil.of(new Date());
      //  LocalDateTime start = LocalDateTimeUtil.parse(of);
       LocalDateTime end = LocalDateTimeUtil.parse("2022-11-09T11:00:00");

        Duration between = LocalDateTimeUtil.between(of, end);

// 365
        long l = between.toMinutes();
        System.out.println(l);


    }

}
